package com.jianxiu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jianxiu.bean.Contact;
import com.jianxiu.dao.mapper.ContactMapper;
import com.jianxiu.service.ContactService;

@Service
@Transactional
public class ContactServiceImpl implements ContactService {

    @Resource
    private ContactMapper contractMapper;

    @Override
    public List<Contact> list(Map<String, Object> param) {
        return contractMapper.list(param);
    }

    @Override
    public int count(Map<String, Object> sp) {
        return contractMapper.count(sp);
    }

    @Override
    public int delete(Long id) {
        return contractMapper.delete(id);
    }

    @Override
    public Contact get(Long id) {
        return contractMapper.get(id);
    }

    @Override
    public int update(Contact contract) {
        return contractMapper.update(contract);
    }

    @Override
    public int save(Contact contact) {
        return contractMapper.save(contact);
    }
}
